<script src="__PUBLIC__/js/backend/merchant.js"></script>
<script>
$(function(){
  Merchant_Detail.init( <?php echo json_encode($config) ?> );
});

</script>

<div class="page-content">
  <ol class="breadcrumb">
    <li><a href="<?php echo $home_url ?>">首页</a></li>
    <li><a href="<?php echo $module_url ?>"><?php echo $module_name ?></a></li>
    <li class="active">商户 [<strong><?php echo $merchant_data['name'] ?></strong>] 的功能列表</li>
  </ol>
  <div class="page-content-inner"> 
    <!-- read_modal -->
    <div class="portlet blue" id="read_modal"> 
      <!-- portlet-title -->
      <div class="portlet-title">
        <div class="caption"> <i class="fa fa-th  "></i> 商户 [<strong><?php echo $merchant_data['name'] ?></strong>] 功能列表 </div>
        <div class="tools"> 
        </div>
      </div>
      <!-- end portlet-title -->
      <div class="portlet-body ">
        <h4>商户用户</h4>
        <div class="row">  
  
          <div class="col-xs-2">
            <a class="btn btn-info icon" href="<?php echo U('Backend/MerRole/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-user-secret"></i>
              <p>商户角色管理</p>
            </a>
          </div>
          
          <div class="col-xs-2">
            <a class="btn btn-warning icon" href="<?php echo U('Backend/MerGroup/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-users"></i>
              <p>商户用户组管理</p>
            </a>
          </div>
          <div class="col-xs-2">
            <a class="btn btn-success icon" href="<?php echo U('Backend/MerUserManager/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-user-md"></i>
              <p>商户管理用户</p>
            </a>
          </div>
          <div class="col-xs-2">
            <a class="btn btn-success icon" href="<?php echo U('Backend/MerUser/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-user"></i>
              <p>商户用户</p>
            </a>
          </div>
        </div>
        <h4>商户设置</h4>
        <div class="row">            
          <div class="col-xs-2">
            <a class="btn btn-primary icon" href="<?php echo U('Backend/MerDictionary/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-th-list"></i>
              <p>商户字典</p>
            </a>
          </div>
          
          <div class="col-xs-2">
            <a class="btn btn-success icon" href="<?php echo U('Backend/MerUser/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-user"></i>
              <p>商户用户管理</p>
            </a>
          </div>
        </div>
        <h4>内容</h4>
        <div class="row">        
          <div class="col-xs-2">
            <a class="btn btn-info icon" href="<?php echo U('Backend/MerContent/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-book"></i>
              <p>内容管理</p>
            </a>
          </div>
          <div class="col-xs-2">
            <a class="btn btn-warning icon" href="<?php echo U('Backend/MerGoods/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-gift"></i>
              <p>商品管理</p>
            </a>
          </div> 
          <div class="col-xs-2">
            <a class="btn btn-danger icon" href="#">
              <i class="fa fa-list-alt "></i>
              <p>订单管理</p>
            </a>
          </div>
        </div>
        <h4>微信</h4>
        <div class="row">  
          <div class="col-xs-2">
            <a class="btn btn-primary icon" href="<?php echo U('Backend/MerWxSetting/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-wechat"></i>
              <p>公众号管理</p>
            </a>
          </div>      
        </div>

        <div class="row" style="text-align:center; margin-top:60px;">
          <button type="button" class="btn btn-lg btn-default" onClick="javascript:history.go(-1)"><i class="fa fa-arrow-left"></i> 返回</button>
        </div>
      </div>
    </div>
    <!-- end portlet read_modal --> 
  </div>
  <!-- end page-content-inner --> 
</div>
